import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('@/views/layout/LayoutContainer.vue'),
      redirect: '/HomePage'
    },
    // 首页
    {
      path: '/HomePage',
      component: () => import('@/views/layout/LayoutContainer.vue')
    },
    // 关于我们
    {
      path: '/AboutUs',
      component: () => import('@/views/page/AboutUs/AboutUs.vue')
    },
    // 新闻资讯
    {
      path: '/NewsUpdates',
      component: () => import('@/views/page/NewsUpdates/NewsUpdates.vue')
    },
    // 知识库
    {
      path: '/KnowledgeBase',
      component: () => import('@/views/page/KnowledgeBase/KnowledgeBase.vue')
    },
    // 更多知识
    {
      path: '/MoreKnowledge',
      component: () => import('@/components/ArticleContents/MoreKnowledge.vue')
    },
    // 知识详情
    {
      path: '/ParticularsKnowledge',
      component: () =>
        import('@/components/ArticleContents/ParticularsKnowledge.vue')
    },
    // 联系我们
    {
      path: '/ContactUs',
      component: () => import('@/views/page/ContactUs/ContactUs.vue')
    }
  ]
})

export default router
